package com.ml.mall.entity.product;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
* <p>
    * 
    * </p>
*
* @author kyyang
* Created 2021-05-19
*/
    @Data
    @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    @TableName("sys_product")
    @ApiModel(value="SysProduct对象", description="")
    public class SysProduct implements Serializable {


    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
    * 创建时间
    */
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_at", fill = FieldFill.INSERT)
    private Date createAt;

    /**
    * 更新时间
    */
    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_at", fill = FieldFill.INSERT_UPDATE)
    private Date updateAt;

    /**
    * 是否删除
    */
    @ApiModelProperty(value = "是否删除")
    @TableField(value = "is_delete",fill = FieldFill.INSERT)
    @TableLogic(value = "0",delval = "1")
    private Integer isDelete;

    /**
    * 子目录：用于归类：如扫地机器
    */
    @ApiModelProperty(value = "子目录：用于归类：如扫地机器")
    @TableField("category_id")
    private String categoryId;

    /**
    * 产品ID
    */
    @ApiModelProperty(value = "产品ID")
    @TableField("product_id")
    private Long productId;

    /**
    * 供应商ID
    */
    @ApiModelProperty(value = "供应商ID")
    @TableField("supplier_id")
    private Long supplierId;

    /**
    * 产品名称
    */
    @ApiModelProperty(value = "产品名称")
    @TableField("product_name")
    private String productName;

    /**
    * 产品描述
    */
    @ApiModelProperty(value = "产品描述")
    @TableField("description")
    private String description;

    /**
    * 品牌:看示意图
    */
    @ApiModelProperty(value = "品牌:看示意图")
    @TableField(updateStrategy = FieldStrategy.IGNORED, value="brand")
    private String brand;

    /**
    * 状态：0正常；1下线
    */
    @ApiModelProperty(value = "状态：0正常；1下线")
    @TableField(value = "`state`",fill = FieldFill.INSERT)
    private Integer state;

    /**
     * 拒绝原因
     */
    @ApiModelProperty(value = "拒绝原因")
    @TableField(value = "refus_reasion" ,updateStrategy = FieldStrategy.IGNORED)
    private String refusReasion;



    /**
     * 建议目录：一级
     */
    @ApiModelProperty(value = "建议目录：一级")
    @TableField(value = "suggest_category")
    private String suggestCategory;

    /**
     * 建议目录：子目录
     */
    @ApiModelProperty(value = "建议目录：子目录")
    @TableField(value = "suggest_sub_category")
    private String suggestSubCategory;
}
